<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<title>SAEE</title>
	<h:outputStylesheet library="css" name="style.css" />
	<h:outputScript name="jsf.js" library="javax.faces" target="head" />
</h:head>
<h:body>

	<div id="cabecalho">
		<h:graphicImage library="imagens" name="logosaee.png" id="logoCompany" />
	</div>
	<div id="usuarioLogado">Logado como: #{loginBean.pessoa.nome}</div>
	<div id="conteudo">

		<p:growl autoUpdate="true" />

		<h:outputScript name="jsf.js" library="javax.faces" target="head" />
		<h:form>
			<p:menubar rendered="#{loginBean.pessoa.perfil == 'ADM'}">
				<p:menuitem value="Usuário" url="pessoa.xhtml" />
				<p:menuitem value="Empresa" url="empresa.xhtml" />
				<p:menuitem value="Vaga" url="vaga.xhtml" />
				<p:menuitem value="Sair" action="#{loginBean.logout}" ajax="false" />
			</p:menubar>

			<p:menubar rendered="#{loginBean.pessoa.perfil != 'ADM'}">
				<p:menuitem value="Dados pessoais" url="dados.xhtml" />
				<p:menuitem value="Vaga" url="vaga.xhtml" />
				<p:menuitem value="Sair" action="#{loginBean.logout}" ajax="false" />
			</p:menubar>

		</h:form>
		<ui:insert name="corpo" />
	</div>
	<div id="rodape">------------Sistema de apoio
		Empresa/Escola-----------</div>
</h:body>
</html>